import request from '@/utils/request'

// 查询采集分类信息列表
export function listCategory(dutiesId) {
    return request({
        url: '/kettle/category/list/'+ dutiesId,
        method: 'get'
    })
}

// 查询采集分类信息详细
export function getCategory(id) {
    return request({
        url: '/kettle/category/' + id,
        method: 'get'
    })
}

// 新增采集分类信息
export function addCategory(data) {
    return request({
        url: '/kettle/category',
        method: 'post',
        data: data
    })
}

// 修改采集分类信息
export function updateCategory(data) {
    return request({
        url: '/kettle/category',
        method: 'put',
        data: data
    })
}

// 删除采集分类信息
export function delCategory(id) {
    return request({
        url: '/kettle/category/' + id,
        method: 'delete'
    })
}
